package com.nbsaas.boot.order.rest.convert;

import com.nbsaas.boot.order.data.entity.OrderLog;
import com.nbsaas.boot.order.api.domain.simple.OrderLogSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 订单日志-列表对象转换器
*/

public class OrderLogSimpleConvert implements Converter<OrderLogSimple, OrderLog> {




@Override
public OrderLogSimple convert(OrderLog source) {
    OrderLogSimple result = new OrderLogSimple();

                result.setOrderNo(source.getOrderNo());
                result.setOrderId(source.getOrderId());
                result.setOperationData(source.getOperationData());
                result.setOperationDesc(source.getOperationDesc());
                result.setOperatorName(source.getOperatorName());
                result.setAddDate(source.getAddDate());
                result.setOperationTime(source.getOperationTime());
                result.setOperationIp(source.getOperationIp());
                result.setOperationType(source.getOperationType());
                result.setOperatorType(source.getOperatorType());
                result.setId(source.getId());
                result.setOperatorId(source.getOperatorId());
                result.setLastDate(source.getLastDate());


    return result;
}

}